package com.boco.pciv.entity.sys;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * 部门信息表
 * 
 * @author pciv
 * @email pciv@boco.com.cn
 * @date 2018-07-10 15:10:20
 */
public class DeptInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@NotBlank(message="部门ID不能为空")
	private String id;
	//
	@NotBlank(message="部门名称不能为空")
	private String name;
	//
    @NotBlank(message="上级部门不能为空")
	private String parentId;
	private String parentName;
	//状态：1:启用;0:停用
	private Integer state;
	//
    @Min(value = 1,message="部门排序必须为大于0数字")
	private Integer rank;
	//
	private Integer levelId;
	//0:部门  1:单位 2:公司
	private Integer type;
	//
	private String address;
	//
	private String zipCode;
	//
	private String phone;
	//
	private String fax;
	//
	private String mail;
	//
	private String remarks;
	//创建人
	private String createUser;
	//创建时间
	private Date createTime;
	//修改人
	private String updateUser;
	//修改时间
	private Date updateTime;

	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getParentId() {
		return parentId;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getState() {
		return state;
	}
	public void setRank(Integer rank) {
		this.rank = rank;
	}
	public Integer getRank() {
		return rank;
	}
	public void setLevelId(Integer levelId) {
		this.levelId = levelId;
	}
	public Integer getLevelId() {
		return levelId;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getType() {
		return type;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAddress() {
		return address;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhone() {
		return phone;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getFax() {
		return fax;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getMail() {
		return mail;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
}
